<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SimpleWindow: StatusBar.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SimpleWindow
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_status_bar_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">StatusBar.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &quot;Control.h&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;CommCtrl.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="keyword">namespace </span>sw</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span>{</div>
<div class="foldopen" id="foldopen00011" data-start="{" data-end="};">
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html">   11</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classsw_1_1_status_bar.html">StatusBar</a> : <span class="keyword">public</span> <a class="code hl_class" href="classsw_1_1_control.html">Control</a></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>    {</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#a4da5dcbe130095ab4e52a67e9f3f9a65">   17</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_status_bar.html#a4da5dcbe130095ab4e52a67e9f3f9a65">SizingGrip</a>;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#a9680d7b905fcc4f06c3ae544a1bf3170">   22</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">ReadOnlyProperty&lt;int&gt;</a> <a class="code hl_variable" href="classsw_1_1_status_bar.html#a9680d7b905fcc4f06c3ae544a1bf3170">PartsCount</a>;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#a0a97d4bff90e41bcbd6260ee9f9fa66a">   27</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_status_bar.html#a0a97d4bff90e41bcbd6260ee9f9fa66a">UseUnicode</a>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#a4d8cfb5aa48d46b7420dcaffeaa3f3ef">   33</a></span>        <a class="code hl_function" href="classsw_1_1_status_bar.html#a4d8cfb5aa48d46b7420dcaffeaa3f3ef">StatusBar</a>();</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#a79c2680706994331d156c70361ea7303">   40</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_status_bar.html#a79c2680706994331d156c70361ea7303">SetParts</a>(std::initializer_list&lt;double&gt; <a class="code hl_class" href="classsw_1_1_dictionary.html">parts</a>);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#ab37fce276662c2e016436cc0122b9fa1">   48</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_status_bar.html#ab37fce276662c2e016436cc0122b9fa1">GetTextAt</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">uint8_t</a> index, std::wstring &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">out</a>);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#a82e57cdce2c813e2342f5487b9739143">   56</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_status_bar.html#a82e57cdce2c813e2342f5487b9739143">SetTextAt</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">uint8_t</a> index, <span class="keyword">const</span> std::wstring &amp;text);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#aea5639a449fd9c8f0398c42a486b6960">   64</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_status_bar.html#aea5639a449fd9c8f0398c42a486b6960">GetRectAt</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">uint8_t</a> index, <a class="code hl_struct" href="structsw_1_1_rect.html">sw::Rect</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">out</a>);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classsw_1_1_status_bar.html#a5edad75db8b47a0d137077e03c2cc9d6">   72</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_status_bar.html#a5edad75db8b47a0d137077e03c2cc9d6">SetBackColor</a>(<a class="code hl_struct" href="structsw_1_1_color.html">Color</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">color</a>, <span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">redraw</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    };</div>
</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>}</div>
<div class="ttc" id="aclasssw_1_1_control_html"><div class="ttname"><a href="classsw_1_1_control.html">sw::Control</a></div><div class="ttdoc">控件</div><div class="ttdef"><b>Definition</b> Control.h:11</div></div>
<div class="ttc" id="aclasssw_1_1_dictionary_html"><div class="ttname"><a href="classsw_1_1_dictionary.html">sw::Dictionary</a></div><div class="ttdoc">字典类，内部维护了一个指向std::map的智能指针</div><div class="ttdef"><b>Definition</b> Dictionary.h:24</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html"><div class="ttname"><a href="classsw_1_1_status_bar.html">sw::StatusBar</a></div><div class="ttdoc">状态栏</div><div class="ttdef"><b>Definition</b> StatusBar.h:12</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_a0a97d4bff90e41bcbd6260ee9f9fa66a"><div class="ttname"><a href="classsw_1_1_status_bar.html#a0a97d4bff90e41bcbd6260ee9f9fa66a">sw::StatusBar::UseUnicode</a></div><div class="ttdeci">const Property&lt; bool &gt; UseUnicode</div><div class="ttdoc">指定控件是否使用Unicode编码</div><div class="ttdef"><b>Definition</b> StatusBar.h:27</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_a4d8cfb5aa48d46b7420dcaffeaa3f3ef"><div class="ttname"><a href="classsw_1_1_status_bar.html#a4d8cfb5aa48d46b7420dcaffeaa3f3ef">sw::StatusBar::StatusBar</a></div><div class="ttdeci">StatusBar()</div><div class="ttdoc">初始化状态栏</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_a4da5dcbe130095ab4e52a67e9f3f9a65"><div class="ttname"><a href="classsw_1_1_status_bar.html#a4da5dcbe130095ab4e52a67e9f3f9a65">sw::StatusBar::SizingGrip</a></div><div class="ttdeci">const Property&lt; bool &gt; SizingGrip</div><div class="ttdoc">是否在控件右下角显示大小调整手柄，修改该属性会重置当前控件</div><div class="ttdef"><b>Definition</b> StatusBar.h:17</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_a5edad75db8b47a0d137077e03c2cc9d6"><div class="ttname"><a href="classsw_1_1_status_bar.html#a5edad75db8b47a0d137077e03c2cc9d6">sw::StatusBar::SetBackColor</a></div><div class="ttdeci">virtual void SetBackColor(Color color, bool redraw) override</div><div class="ttdoc">设置背景颜色</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_a79c2680706994331d156c70361ea7303"><div class="ttname"><a href="classsw_1_1_status_bar.html#a79c2680706994331d156c70361ea7303">sw::StatusBar::SetParts</a></div><div class="ttdeci">bool SetParts(std::initializer_list&lt; double &gt; parts)</div><div class="ttdoc">设置控件中的分区信息</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_a82e57cdce2c813e2342f5487b9739143"><div class="ttname"><a href="classsw_1_1_status_bar.html#a82e57cdce2c813e2342f5487b9739143">sw::StatusBar::SetTextAt</a></div><div class="ttdeci">bool SetTextAt(uint8_t index, const std::wstring &amp;text)</div><div class="ttdoc">设置指定部分的文本</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_a9680d7b905fcc4f06c3ae544a1bf3170"><div class="ttname"><a href="classsw_1_1_status_bar.html#a9680d7b905fcc4f06c3ae544a1bf3170">sw::StatusBar::PartsCount</a></div><div class="ttdeci">const ReadOnlyProperty&lt; int &gt; PartsCount</div><div class="ttdoc">获取当前控件中的分区数</div><div class="ttdef"><b>Definition</b> StatusBar.h:22</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_ab37fce276662c2e016436cc0122b9fa1"><div class="ttname"><a href="classsw_1_1_status_bar.html#ab37fce276662c2e016436cc0122b9fa1">sw::StatusBar::GetTextAt</a></div><div class="ttdeci">bool GetTextAt(uint8_t index, std::wstring &amp;out)</div><div class="ttdoc">获取指定部分的文本</div></div>
<div class="ttc" id="aclasssw_1_1_status_bar_html_aea5639a449fd9c8f0398c42a486b6960"><div class="ttname"><a href="classsw_1_1_status_bar.html#aea5639a449fd9c8f0398c42a486b6960">sw::StatusBar::GetRectAt</a></div><div class="ttdeci">bool GetRectAt(uint8_t index, sw::Rect &amp;out)</div><div class="ttdoc">获取指定部分的位置与尺寸</div></div>
<div class="ttc" id="astructsw_1_1_color_html"><div class="ttname"><a href="structsw_1_1_color.html">sw::Color</a></div><div class="ttdoc">颜色</div><div class="ttdef"><b>Definition</b> Color.h:12</div></div>
<div class="ttc" id="astructsw_1_1_rect_html"><div class="ttname"><a href="structsw_1_1_rect.html">sw::Rect</a></div><div class="ttdoc">表示一个矩形区域</div><div class="ttdef"><b>Definition</b> Rect.h:13</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_01fcd3835fb4e7d9331b722d86291b65.html">sw</a></li><li class="navelem"><a class="el" href="dir_ed5f6ece24ffcc4307a76d27c2494db3.html">inc</a></li><li class="navelem"><b>StatusBar.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
